import type { ProfileDetail, ProfileParams } from '@/types/member'
import { request } from '@/utils/request'
/** 获取个人信息 */
export const getProfileAPI = () => {
  return request<ProfileDetail>({
    method: 'GET',
    url: '/member/profile',
  })
}

/** 修改个人信息 */
export const putProfileAPI = (data?: ProfileParams) => {
  return request<ProfileDetail>({
    method: 'PUT',
    url: '/member/profile',
    data,
  })
}
